package com.desyang.client;

import com.desyang.client.proxy.ServiceProxy;
import com.desyang.common.pojo.User;
import com.desyang.common.service.UserService;

public class Client {
    public static void main(String[] args) {
        ServiceProxy serviceProxy = new ServiceProxy("127.0.0.1", 9999);
        UserService userService = serviceProxy.getProxy(UserService.class);
        

        User user = userService.findUserById(3L);
        System.out.println(user);

        Integer id = userService.insertUser(User.builder().id(5L).name("李四").password("123456").build());
        System.out.println("id = " + id);
    }
}
